package com.dxysun.design.visitor;

public class ObjectStructure
{
	private IElement elementA;
	private IElement elementB;

	public ObjectStructure()
	{
		this.elementA = new ConcreteElementA();
		this.elementB = new ConcreteElementB();
	}

	public void accept(IVisitor visitor)
	{
		elementA.accept(visitor);
		elementB.accept(visitor);
	}
}
